$related-box-padding: 20px;

.post {
  @include breakpoint(small) {
    padding-top: 30px;
  }

  ul {
    margin-top: 0.5rem;
  }

  ul li{
    list-style: disc;
  }

}

.post-container {
  position: relative;
}

.post-header {}

// tags
$tag-border-color: #bbb;
.tag {
  //border: 2px solid #bbb;
  background: #bbb;
  color: white;
  border-left: none;
  padding: 0.1em 0.5em;
  box-shadow: 1px 2px #aaa;

  a:hover &,
  a:active &{
    background: #85B8E7;
    box-shadow: 1px 2px #4D96C7;
  }
  a:active &{
    box-shadow: none;
    transform: translate(1px, 2px);
  }
}
//.tag-tip {

  //&:before {
    //content: '';
    //border: 10px solid transparent;
    //border-right-color: #bbb;
  //}
//}

.post-meta-list {
  @extend .post-item-meta-list;
  line-height: 1;
  margin-bottom: 15px;
  font-family: $title-font-family;
}

.post-meta-item{
  @extend .post-item-meta-item;
  //font-size: 0.8rem;
  position: relative;
  a {
    &, &:hover {
      text-decoration: none;
    }
  }

}

.related-header {
  display: inline-block;
}

.related-posts-list {
  font-family: $title-font-family;
  //display: inline-block;
  //margin-left: 1em;
  margin-left: 0;
  margin-top: 10px;
  //position: relative;
  //top: -$related-box-padding;
  //padding: $related-box-padding;
  //border: 2px solid;
  border-color: #9DAEB6;
  .related-item {
    list-style: none;
    font-size: 1.2rem;
    //display: inline-block;
    //margin-left: 10px;
    &:before {
      //content: '\261e'; //小手
      //top: 3px;
      //position: relative;
      line-height: 2;
      font-family: FontAwesome;
      content: '\f135'; // rocket
      left: -0.3rem;
    }

    a {
      text-decoration: none;
    }
  }
}


.post-title {
  line-height: 1;
  padding-bottom: 15px;

  a {
    text-decoration: none;

    &:hover {
      color: inherit;
    }
  }
}

.post-subtitle {
  font-style: italic;
  font-family: $text-font-family;
  font-weight: 400;
  line-height: 1.2;
  padding-bottom: 15px;
}

.post-author {
  .post-footer & {
    padding-right: 20px;
  }
}

.post-author-avatar {
  width: 80px;
  height: 80px;
  display: block;
  margin-bottom: 10px;

  img {
    border-radius: 100%;
    width: 100%;
  }

  .post-side & {
    float: right;
  }

  .post-footer & {
    float: left;
    margin-bottom: 0;
    margin-right: 10px;

    @include breakpoint(x-small) {
      display: none;
    }
  }
}

.post-author-info {
  .post-side & {
    clear: right;
  }

  .post-footer & {
    overflow: hidden;
  }

  p {
    font-size: 12px;
    font-style: italic;
    color: $muted-text-color;
    margin-bottom: 0;

    a {
      color: $muted-text-color;
    }
  }
}

.post-author-name {
  display: block;
  line-height: 1;
  margin-bottom: 5px;
  text-decoration: none;
  font-family: $title-font-family;
  font-size: 1rem;
  font-weight: 700;
}

.post-info {
  margin-top: 10px;
}

.post-info-title {
  @extend .post-author-name;
  display: inline-block;
  letter-spacing: normal;
  font-style: normal;
  color: $text-color;
  font-size: 0.8rem;
  margin-bottom: 0;
}


.post-side {
  position: absolute;
  top: 0;
  left: -9rem;
  width: 120px;
  padding: 0 5px;
  text-align: right;
  //z-index: 300;

  @include breakpoint(large) {
    display: none;
  }
}

.post-body {
  h1, .h1,
  h2, .h2 {
    margin-top: 1rem;
    margin-bottom: 4px;

    & ~ hr {
      margin-bottom: 0;
    }
  }

  h1 {
    text-align: center; //todo 居中, 加上横线(波浪线？图片？)加强h1 需要这么浮夸么?
    position: relative;
    &:before,
    &:after{
      content: '';
      width: 30%;
      top: 50%;
      position: absolute;
      border-top: 1px #fefefe solid;
      border-bottom: 1px #c1c1c1 solid;
    }
    &:before{
      left: 0;
    }
    &:after{
      left: auto;
      right: 0;
    }
  }

  a {
    color: $link-color;
    text-decoration: none;

    &:hover {
      color: $primary-color;
    }
  }

  //> p {
  //  text-indent: 2em;

  //}
}

.post-footer {
  overflow: hidden;
  border-top: 2px solid $line-breaks-color;
  padding: 40px 0;

  & > .post-social,
  & > .post-author {
    width: 50%;
    float: left;
  }
}

.post-footer-heading {
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: $muted-text-color;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-social {
  text-align: right;

  .post-footer & {
    padding-left: 20px;
  }
}

.post-comments {
  border-top: 2px solid $line-breaks-color;
  padding: 40px 0;
}

.jia_area {
  float: right;
}

#back-to-top{
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  a{
    font-size: 28px;
    display: block;
    text-align: center;
    width: 50px;
    height: 50px;
    background: #a3a3a3;
    color: white;
    border-radius: 50px;
    transition: all 0.2s linear;
    &:hover {
      background: #CDDDE4;
    }
  }
  i {
    position: relative;
    top: 3px;
  }
}

